package com.boc.ewr.business.service.impl;

import com.boc.ewr.business.entity.AcctDtlClassA2;
import com.boc.ewr.business.mapper.AcctDtlClassA2Mapper;
import com.boc.ewr.business.service.IAcctDtlClassA2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description: A2类账户明细
 * @Author: jeecg-boot
 * @Date:   2023-05-26
 * @Version: V1.0
 */
@Service
public class AcctDtlClassA2ServiceImpl extends ServiceImpl<AcctDtlClassA2Mapper, AcctDtlClassA2> implements IAcctDtlClassA2Service {

    @Autowired
    AcctDtlClassA2Mapper acctDtlClassA2Mapper;

    //产生数据
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void createInfo() {
        saveBatch(acctDtlClassA2Mapper.creatInfo());
    }
}
